﻿using Mvc2Ng.Web.NgLib.Extensions.Attributes;
using Mvc2Ng.Web.UI.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Mvc2Ng.Web.UI.Controllers {

  public class MessageViewModel{

    public int Count { get; set; }

    public string Title { get; set; }

  }

  [AngularControllers]
  public class AppController : AngularJsController {

    [NgController]
    public ActionResult Index() {
      return View();
    }

    [NgController("~/Views/App/js/dashboard.js")]
    public ActionResult Dash() {
      return View(22);
    }

    [NgController("~/Views/App/js/admin.js")]
    public ActionResult Settings() {
      return View();
    }

    [NgController("~/Views/App/js/messagecenter.js", typeof(MessageViewModel))]
    public ActionResult Messages() {
      return View();
    }


  }
}
